function genTexture2
%genTextureSpectrum
%genTextureFeatureCodingMethod
load('dir.mat');
fileNum = size(dirs,2);
Features=zeros(size(dirs,2)+size(dirs2,2)-2,83);
count=1;
for i =2:fileNum
    dirs(i).name
    image=dlmread(dirs(i).name);    
    Features(count,:)=[genTextureSpectrum(image),genTextureSpectrumJND(image),getTFN(image),getTFNJND(image),genGrayFs(image),SGLD_FS(image),genLBPFs(image),0];
    count=count+1;
end
fileNum = size(dirs2,2);
for i =2:fileNum
    dirs2(i).name
    image=dlmread(dirs2(i).name);
    Features(count,:)=[genTextureSpectrum(image),genTextureSpectrumJND(image),getTFN(image),getTFNJND(image),genGrayFs(image),SGLD_FS(image),genLBPFs(image),1];
    count=count+1;
end
dlmwrite('Features82.txt',Features);